package jobflow.scheduleBean;

import java.util.Calendar;
import java.util.Date;

import org.apache.commons.lang3.time.DateUtils;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;


@Name("scheduleService")
public class ScheduleService {

	
	@In ScheduleBean scheduleBean;
	
	Date start = new  Date();
	
	public void scheduleTimer() {
        
		start = DateUtils.addMinutes(start, 1);
		
		Calendar end = Calendar.getInstance();
		
		end.set(2020,Calendar.MAY,10);
		
		String cron="* * * * *";
		
		scheduleBean.imageDelete(start, 20L, end.getTime());
		
	}
	
	
	
	
}
